<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
Movie[] movieList;
%>
<%
movieList=(Movie[])session.getAttribute("orderedMovies");
%>
<%@page import="com.beans.Movie"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Online Video Library</title>
</head>
<body>
<form>
<div style="text-align:center;color:black;font-size:1em;font-family: sans serif;">
	<font size="6">List of Movies Ordered</font></div>
	<br>
	<br>
	<div class ="inputColumn" id = "OrderReport"  
				style="text-align: left; border: none; margin: auto;">	
			<table align="center" border="1" style="border-style: dashed; background-color: rgb(254,252,180);">
			<%
			if(movieList != null)
			{
			%>
				<tr>
				<th align="center" style="color:red" bordercolor="red">Movie Name </th>
				<th align="center" style="color:red" bordercolor="red">Category </th>
				<th align="center" style="color:red" bordercolor="red">Rating</th>
				<th align="center" style="color:red" bordercolor="red">Rent Date</th>
				<th align="center" style="color:red" bordercolor="red">Rent Amount </th>
				</tr>
				<% 
				
				for(int i=0;i<movieList.length;i++)
				{
					%>
					<tr bordercolor="black" style="border-style: none;width: 100%" >
					  <td>
						 	<label id = "MovieName" style="size: 25;"><%=movieList[i].getMovieName()%></label> 
						</td>
						<td>
							<label id="MovieCategory" style="size: 35;"><%=movieList[i].getCategoryname() %></label>
						</td>
						<td>
							<label id="MovieRating" style="size: 35;"><%=movieList[i].getRating()%></label>
						</td>
						<td>
							<label id="RentDate" style="size: 25;"><%=movieList[i].getRentdate()%></label>
						</td>
						<td>
							<label id="RentAmount" style="size: 25;"><%=movieList[i].getRentamount()%></label>
						</td>
					</tr>
					<%
				}
				%>
			</table>
				<%			
			}
			else
			{
			%>
			<font size="4">No Movies Ordered</font>
			<%
			}
			%>
	</div>
</form>
</body>
</html>